﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using Server.Utils.JSON;
using Server.Functions;

namespace Server.Account
{
    public class ConnectData : ServerData
    {
        Guid m_guid;

        public ConnectData()
        {
            m_guid = Guid.Empty;
        }

        public Guid Guid
        {
            get { return m_guid; }
        }

        public override void ReadData(JSONObject obj)
        {
            /*
             * {
             *      guid = "xxx-xx-.."
             * }
             */

            object guidprop = obj["guid"];

            if (guidprop == null)
            {
                return;
            }

            m_guid = new Guid(guidprop.ToString());
        }
    }
}